/*
 * Copyright 2013 Sebastian Gesemann <s.gesemann@gmail.com>
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */

/*
 * Interface for the FFT implementation
 */

#ifndef FFT_HPP_INCLUDED
#define FFT_HPP_INCLUDED

#include <complex>
#include "array_ref.hpp"

namespace sg {

typedef float real;
typedef std::complex<real> complx;

const real pi = 3.14159265358979323846;

/// computes the FFT in-place
/// Note: the size must be a power of two!
void fft(array_ref<complx> data);

/// computes the inverse FFT in-place
/// Note: the size must be a power of two!
void ifft(array_ref<complx> data);

} // namespace sg

#endif

